package com.wxy.common.rsp;

/**
 * SucceedRsp 成功响应
 *
 * @author wxy
 * @since 2023-01-07
 */
public class SucceedRsp<T> extends Rsp {
    /**
     * 成功响应结果
     */
    private T result;

    public static <T> SucceedRsp<T> ok(T result) {
        SucceedRsp<T> rsp = new SucceedRsp<>();
        rsp.result = result;

        return rsp;
    }

    public T getResult() {
        return result;
    }
}
